package com.fei.service;

import com.fei.bean.SongListBean;
import com.fei.mapper.SongListMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SongListServiceImpl implements SongListService{

    @Autowired
    SongListMapper songListMapper;

    @Override
    public List<SongListBean> findAllSongListService() {
        return songListMapper.findAllSongList();
    }

    @Override
    public SongListBean selectOneIdSongListService(int id) {
        return songListMapper.selectOneIdSongList(id);
    }

    @Override
    public int insertSongListService(SongListBean bean) {
        return songListMapper.insertSongList(bean);
    }

    @Override
    public int deleteSongListService(int id) {
        return songListMapper.deleteSongList(id);
    }


}
